import { createApp } from "vue";
import type { App as AppType } from "vue";
import App from "./App.vue";
import pinia from "@/pinia/pinia.ts";
import router from "@/router/router.ts";
import globalComponents from "@/components/index.ts";
import { Toast } from "vant";
import "virtual:svg-icons-register";
import "vant/es/toast/style";
import "vant/es/dialog/style";
import "vant/es/notify/style";
import "vant/es/image-preview/style";
import "nprogress/nprogress.css";
import "@/styles/index.scss";
import "@/permission.ts";

const app: AppType = createApp(App);


app.use(pinia);
app.use(router);
app.use(Toast);
app.use(globalComponents);
app.mount("#app");
